package com.github.ikidou.cqj;

import com.github.ikidou.entity.BaseEntity;
import com.github.ikidou.entity.MachineCoupon;

import java.util.List;
import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Created by jon on 17-9-24.
 */

public interface ApiServcie {
    @GET("v2/accept/account/findAllMiaoFan?accesstoken=C9063D76949B438A8361FC7EBD330D0D&os=Android&version=1000000&status=0&start=0&limit=10")
    Call<ResponseBody> getDeCoupon();

    @GET("v2/accept/account/findAllMiaoFan?accesstoken=C9063D76949B438A8361FC7EBD330D0D&os=Android&version=1000000&status=0&start=0&limit=10")
    Call<MachineCoupon> getConvertCoupon();

    @FormUrlEncoded
    @POST("v2/accept/account/findAllMiaoFan")
    Call<BaseEntity<List<MachineCoupon>>> postConvertCoupon(@FieldMap Map<String, String> map);
}
